package cn.sunxyz.behavior.iterator;

/**
 * Created by yangrd on 2017/5/13.
 */
public class Test {

    public static void main(String[] args) {
        Collection<String> collection = new MyCollection<>("7", "8", "879");
        Iterator<String> iterator = collection.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
